//
//  TTDatabaseResult.h
//  Tint
//
//  Created by Kevin Wu on 2/28/12.
//  Copyright (c) 2012 Telligenty. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Core/Core.h"
#import "Additions/Additions.h"


@class TTDatabaseRow;

@interface TTDatabaseResult : NSObject {
	int _errorCode;
	NSString *_errorMessage;
	NSMutableArray *_columnNames;
	NSMutableArray *_columnTypes;
	NSMutableArray *_rows;
}

@property(nonatomic, assign) int errorCode;
@property(nonatomic, copy) NSString *errorMessage;
@property(nonatomic, readonly) NSMutableArray *columnNames;
@property(nonatomic, readonly) NSMutableArray *columnTypes;
@property(nonatomic, readonly) NSMutableArray *rows;

- (void)addRow:(TTDatabaseRow *)row;
- (TTDatabaseRow *)rowAtIndex:(NSInteger)index;
- (NSUInteger)count;

@end
